<template>
  <div class="not-found">
    <div class="content">
      <h1 class="title">404</h1>
      <p class="desc">抱歉，你访问的页面不存在 ~</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style scoped lang="scss">
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f8f9fa;
  background: url('@/assets/images/error_images/404.png');

  .content {
    text-align: center;

    .title {
      font-size: 120px;
      font-weight: bold;
      color: #409eff;
      margin-bottom: 20px;
    }

    .desc {
      font-size: 20px;
      color: #606266;
      margin-bottom: 30px;
    }

    .el-button {
      font-size: 16px;
      padding: 10px 25px;
    }
  }
}
</style>
